import request from './request';

// 获取用户列表
export function getUserList(params) {
  return request({
    url: '/user/list',
    method: 'get',
    params
  });
}

// 获取用户详情
export function getUserById(id) {
  return request({
    url: `/user/detail/${id}`,
    method: 'get'
  });
}

// 更新用户状态
export function updateUserStatus(id, status) {
  return request({
    url: `/user/status/${id}`,
    method: 'put',
    params: { status }
  });
} 